blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul {
    margin: 0;
    padding: 0
}
body {
  text-align: center;
}

img {
  width: 100%;
  max-width: 100%;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h3,
p {
  padding: 20px;
}

.container {
  width: 960px;
  margin: 0 auto;
}

#header,
#nav,
#footer,
#mainbody,
#sidebar {
  /* line-height: 25px; hrq */
  background: #eee;
  margin-bottom: 20px;
  padding-bottom: 20px;
  color: #999;
}

#mainbody,
#sidebar {
  height: 300px;
  float: left;
  margin-bottom: 35px;
}

#mainbody {
  width: 620px;
  /*background:#ddefcb;*/
  margin-right: 20px;
}

#sidebar {
  width: 320px;
  /*background:#ffcbdd;*/
}

#footer {
  clear: both;
}

#footer h5 {
  padding-top: 20px;
}

#footer {
  background: none;
  border-top: 1px solid #eee;
}

#header {
  background: #348BEC; /* hrq */
  border-bottom: 1px solid #eee;
  padding-top: 30px; /* hrq */
}

#header h1 {
  font-size: 2.5em;
  /* margin-top: 50px; hrq */
  color: #fff;
}

#header h2 {
  font-size: 1em;
  color: #ccc;
}

/* 导航菜单 */

ul {
  list-style: none;
  padding: 0;
}

#nav li,
#nav li a {
  display: inline-block;
  padding: 7px 15px;
  text-decoration: none;
  color: #3b3b3b;
}

#nav li a:hover {
  background: #eee;
}

#nav {
  background: none;
  z-index: 9999;
}

#nav .active {
  background: #eee;
}

.toggle-btn {
  display: none;
}

#showcase {
  margin-bottom: 20px;
}

/* Swipe 幻灯片 */

.swipe {
  overflow: hidden;
  visibility: hidden;
  position: relative;
}

.swipe-wrap {
  overflow: hidden;
  position: relative;
}

.swipe-wrap>div {
  float: left;
  width: 100%;
  position: relative;
}

.slider-control .left {
  position: absolute;
  left: 20px;
  top: 45%;
}

.slider-control .right {
  position: absolute;
  right: 20px;
  top: 45%;
}

.slider-control button {
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  background: #000;
  color: #fff;
  border: 3px solid #fff;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  opacity: 0.7;
  display: none;
}

.swipe:hover button {
  display: block;
}

.slider-control button:hover {
  opacity: 0.5;
}

/* Media Queries */

@media (min-width:1200px) {
  .container {
    width: 1170px;
  }
  #mainbody {
    width: 770px;
    margin-right: 30px;
  }
  #sidebar {
    width: 370px;
  }
  #sidebar img {
    max-height: 200px;
  }
}

@media (max-width:959px) {
  .container {
    width: 100%;
  }
  #mainbody {
    width: 67%;
  }
  #sidebar {
    width: 30%;
    float: right;
  }
}

@media (max-width: 767px) {
  #mainbody,
  #sidebar {
    width: 100%;
    float: none;
  }
  #header,#showcase {
    margin-bottom: 0;
  }
  #mainbody {
    margin-bottom: 5px;
  }
  #header {
    font-size: 12px;
    text-align: left;
    padding-left: 20px;
  }
  /* 切换按钮 */
  .toggle-btn {
    display: inline-block;
    font-size: 25px;
    text-decoration: none;
    background: #000;
    color: #fff;
    padding: 7px 10px;
    position: absolute;
    right: 10px;
    top: 35px;
    height: 20px;
    width: 12px;
    background: url(../img/nav.png)no-repeat center center;
    background-size: 100% 100%;
  }
  /* 隐藏关闭按钮 */
  #nav .close {
    display: none;
  }
  /* 导航为目标状态的时候显示关闭按钮 */
  #nav:target .close {
    display: inline-block;
  }
  /* 初始隐藏导航 */
  #nav {
    display: none;
  }
  /* 导航为目标状态时的样式 */
  #nav:target {
    display: block;
    position: absolute;
    top: 0;
    padding-top: 70px;
    width: 100%;
  }
  /* 目标状态下的导航的 ul 标签 */
  #nav:target ul {
    background: #348bec;
  }
  /* 目标状态下的导航的 li 与 a */
  #nav:target li,
  #nav:target li a {
    display: block;
    color: #eee;
    text-align: left;
  }
  /* 目标状态下的导航的列表下的 a 标签的悬停样式 */
  #nav:target li a:hover {
    /* background: #3b3b3b; */
    background: rgba(9,9,9,0.3);
  }
  /* 目标状态下导航的激活状态的样式 */
  #nav:target .active {
    background: rgba(9,9,9,0.3);
  }
}